import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import print from 'vue3-print-nb'
import pdf from 'vue-pdf'
// import printJS from 'print-js'
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import vue3JsonExcel from 'vue3-json-excel'

import '@/utils/httpRequest'
import '@/utils/permission'
import '@/assets/styles/commen.css'



const app = createApp(App)

// app.component('Vue3JsonExcel', vue3JsonExcel)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


app.use(router)
app.use(store)
app.use(print)
app.use(pdf)
app.use(vue3JsonExcel)
// app.use(printJS)
app.use(ElementPlus, {locale: zhCn })
app.mount('#app')
